package com.park.service.impl.action;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.park.client.model.action.ActionModel;
import com.park.client.service.action.ActionService;
import com.park.dao.action.ActionMapper;
import com.park.service.impl.base.BaseServiceImpl;

@Service("actionService")
public class ActionServiceImpl extends BaseServiceImpl<ActionModel> implements ActionService {
	
	@Autowired
	private ActionMapper controllerMapper;

	@Override
	public boolean insert(ActionModel action) {
		return controllerMapper.insert(action)==1 ;
	}
	@Override
	public ActionModel selectByUrl(String actionUrl) {
		return controllerMapper.selectByUrl(actionUrl);
	}
	@Override
	public boolean deleteByPrimaryKey(Long id) {
		return controllerMapper.deleteByPrimaryKey(id)==1;
	}
	@Override
	public boolean insertSelective(ActionModel record) {
		return controllerMapper.insertSelective(record)==1;
	}
	@Override
	public ActionModel selectByPrimaryKey(Long id) {
		return controllerMapper.selectByPrimaryKey(id);
	}
	@Override
	public boolean updateByPrimaryKeySelective(ActionModel record) {
		return controllerMapper.updateByPrimaryKeySelective(record)==1;
	}
	@Override
	public boolean updateByPrimaryKey(ActionModel record) {
		return controllerMapper.updateByPrimaryKey(record)==1;
	}
	@Override
	public List<ActionModel> selectAll() {
		return controllerMapper.selectAll();
	}
	@Override
	public List<ActionModel> selectPagination(ActionModel t) {
		return controllerMapper.selectPagination(t);
	}
	@Override
	public Integer selectTotal(ActionModel t) {
		return controllerMapper.selectTotal(t);
	}
	

}
